#ifndef JOINTANIMATION_H
#define JOINTANIMATION_H
#include "StompedReality/Asset/KeyFrame.h"
#include "StompedReality/Components/JointComponent.h"
#include "StompedReality/Core.h"
#include "StompedReality/Core/GameTime.h"
#include <vector>
namespace StompedReality
{
namespace animation
{
/*!
 * \author	Stefan Kazalski
 *
 * \brief	Joint animation type helper
 */
struct JointAnimationReg
{
  static int registeType( );
};

typedef std::vector<KeyFrame> KeyFrameList;

class DLL_EXPORT JointAnimation
{
  friend struct JointAnimationReg;

 protected:

  // frames
  KeyFrameList _keyFrames;

 public:

  JointAnimation( );
  ~JointAnimation( );
  void addKeyFrame ( KeyFrame keyFrame );
  KeyFrame* getKeyFrame ( int idx );
  int numberOfFrames( );
};

static int JointAnimationTypeReg = JointAnimationReg::registeType( );

}
}
#endif // JOINTANIMATION_H
